package com.qifn.blog.Model;

import java.util.List;

public class Blog {
    private Integer id;
    private String title;
    private String content;
    private String recommend;
    private String flag;
    private Type type;
    private String updateTime;
    private String picture;
    private List<Tag> tags;
    private User user;

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", recommend='" + recommend + '\'' +
                ", flag='" + flag + '\'' +
                ", type=" + type +
                ", updateTime='" + updateTime + '\'' +
                ", picture='" + picture + '\'' +
                ", tags=" + tags +
                ", user=" + user +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public List<Tag> getTags() {
        return tags;
    }

    public void setTags(List<Tag> tags) {
        this.tags = tags;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Blog() {
    }

    public Blog(Integer id, String title, String content, String recommend, String flag, Type type, String updateTime, String picture, List<Tag> tags, User user) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.recommend = recommend;
        this.flag = flag;
        this.type = type;
        this.updateTime = updateTime;
        this.picture = picture;
        this.tags = tags;
        this.user = user;
    }
}
